//入口文件

//导入路由的包
import VueRouter from 'vue-router'
Vue.use(VueRouter)

//导入mui样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'


import Vue from 'vue'

import app from './App.vue'

import {Header,Swipe, SwipeItem,Button} from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Button.name, Button)

//导入 vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root = 'http://vue.studyit.io';


//时间插件
import moment from 'moment'
Vue.filter('dataFromat',function(dataStr,pattern = "YYYY-MM-DD HH:mm:ss"){
    return moment(dataStr).format(patten)
})



//导入路由模块
import router from './router.js'

var vm = new Vue({
    el:'#app',
    render: c => c(app),
    router
})

